<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'success.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <% 
       Dlyh dlyh =(Dlyh)request.getSession().getAttribute("dlyh");
       int id= Integer.parseInt(request.getParameter("sid").toString()); 
       if(id==1)
       {
           out.print("<script>alert('登陆失败')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=index.jsp">
      <%
       }
       if(id==2)
       {
           out.print("<script>alert('添加成功')</script>");
      %>
          <script>
         window.top.location.href="login.do?dlyhmc=<%=dlyh.getDlyhmc() %>&dlyhmm=<%=dlyh.getDlyhmm() %>";
      </script>
      <%
       }
       if(id==3)
       {
           out.print("<script>alert('修改成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=zd.do?state=showlist">
      <%}
      if(id==4)
       {
           out.print("<script>alert('添加成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=dlyh.do?state=findall">
      <%}
      if(id==5)
       {
           out.print("<script>alert('删除成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=dlyh.do?state=findall">
      <%}
      if(id==6)
       {
           out.print("<script>alert('修改成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=dlyh.do?state=findall">
      <%}
      if(id==7)
       {
           request.setAttribute("result","ok");
           out.print("<script>alert('修改成功')</script>");
      %>
      <script>
         window.top.location.href="login.do?dlyhmc=<%=dlyh.getDlyhmc() %>&dlyhmm=<%=dlyh.getDlyhmm() %>";
      </script>
         <!--  <META HTTP-EQUIV="refresh" content ="0.0001;url=login.do?dlyhmc=<%//=dlyh.getDlyhmc() %>&dlyhmm=<%//=dlyh.getDlyhmm() %>"> -->
         <!-- <META HTTP-EQUIV="refresh" content ="0.1;url=dlyh_info.jsp"> -->
      <%}
       if(id==8)
       {
           out.print("<script>alert('修改成功')</script>");
      %>
          <script type="text/javascript">
             var c =confirm("重新登录，新密码才能生效，是否重新登录");
             if(c==true)
             {
                window.top.location.href="index.jsp";
             }
             else
             {
                 location.href="dlyh_updatepwd.jsp";
             }
           </script>
         
      <%}
      if(id==9)
       {
           out.print("<script>alert('删除成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=rypx.do?state=showall&uid=${uid }">
      <%}
      if(id==10)
       {
           out.print("<script>alert('删除成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=rykp.do?state=showall&uid=${uid }">
      <%}
      if(id==11)
       {
           out.print("<script>alert('删除成功')</script>");
      %>
          <META HTTP-EQUIV="refresh" content ="0.0001;url=ryddList.do?uid=${uid }">
      <%}
    %>
  </body>
</html>
